import os

v=False
a=True
dirlist=[x for x in os.listdir() if os.path.isdir(x)]
for d in dirlist:
    #name=os.listdir(d)
    name=[x for x in os.listdir(d) if os.path.isfile(os.path.join(d,x))]
    #print(os.path.abspath('.'))
    try:
        onename=name[0]
    except:
        a=False
        print('empty %s'%d)
    
	
    for n in name:
		
        if n.split('.')[-1]=='wav':
            v=True                
    if v==False:
        a=False
        print('no wav in %s'%d)

    
def main():
    if a:
        print('all with wav')
    print('done')
    os.system('pause')
if __name__ == '__main__':
	main()
